import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/wx/auth/login',
    method: 'post',
    data
  })
}

export function checkToken() {
  return request({
    url: '/wx/user/index',
    method: 'get'
  })
}